<? $m = count($googlemap) > 0 ? json_encode($googlemap) : 0; ?>


<script>
    var m = '<?= $m ?>';
</script>

<div id="google_box">

    <div class="gheader clearfix">
        <div class="infoline">Info: +382 69 456 772</div>
        <ul class="clearfix pull-right">
            <li><a href=""><?= lang('top.about') ?></a></li>
            <li><a href=""><?= lang('top.servcie') ?></a></li>
        </ul>
        <a href="<?= lang_url() ?>"><img src="<?= base_url() ?>assets/img/google_cipa.png" alt="Cipa Travel"></a>
    </div>

    <div class="clearfix" style="height:100%">

        <div id="google-list">

            <?
                $index = 0;
                foreach ($googlemap as $v) :
                    $t = HOST_URL_HOTELS .  $v->photo_path . '/thumb_70x70/' . $v->photo_name;
                    ?>

                    <div class="GH gradient3" data-id="<?= $index ?>">

                        <img src="<?= $t ?>" />

                        <div class="title"><?= $v->name ?></div>
                        <div class="subtitle"><?= $v->destination ?></div>

                        <div class="stars">
                            <?
                            $stars = (int) $v->stars;
                            for ($i = 0; $i < $stars; $i++):
                                ?>
                                <div class="GH-star"></div>

                            <? endfor; ?>

                        </div>

                        <div class="list"></div>
                        <div class="<?= $v->price == 0 ? "no-" : "" ?>price"><?= $v->price == 0 ? "Price is unknown" : $v->price . lang(currency_sign()); ?></div>

                    </div>



                    <?
                    $index++;
                endforeach;
            ?>

        </div>
        <div id="google_map"></div>

    </div>
</div>